﻿using Languages;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace PTUDW_CNTN2010_F_CDT.Models
{
    public class CommentModel
    {
        [Required(ErrorMessageResourceName = "NameCommentRequired", ErrorMessageResourceType = typeof(Resources))]
        public string Name { get; set; }
        public int ProductId { get; set; }
        public string Comment { get; set; }
        [Required(ErrorMessageResourceName="EmailCommentRequired", ErrorMessageResourceType=typeof(Resources))]
        [DataType(DataType.EmailAddress, ErrorMessageResourceName = "InvalidEmail", ErrorMessageResourceType = typeof(Resources))]
        public string Email { get; set; }
    }
}